package com.sskj.common.dto;

import lombok.Data;

import java.util.Map;

@Data
public class EncodedCommand {

    public EncodedCommand(byte[] rawBytes) {
        this.rawBytes = rawBytes;
    }

    public EncodedCommand(byte[] rawBytes, Map<String, Object> metadata) {
        this.rawBytes = rawBytes;
        this.metadata = metadata;
    }

    // 原始字节，用于下发设备
    private byte[] rawBytes;

    // 元数据信息
    private Map<String, Object> metadata;
}
